﻿using AVIS.OutBound.Orders.Cache;
using AVIS.OutBound.RateCodes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AVIS.OutBound.BookOrders
{
    /// <summary>
    /// 预订单的领域服务
    /// </summary>
    public interface IBookOrderManager
    {
        /// <summary>
        /// 预订单保存到缓存中
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        BookOrder SaveBookOrderCache(BookOrder input);

        /// <summary>
        /// 获取指定OrderID的预定单
        /// </summary>
        /// <param name="orderId"></param>
        /// <param name="orderNo"></param>
        /// <param name="surname"></param>
        /// <returns></returns>
        BookOrder GetBookOrder(string orderId);
    }
}
